import tkinter as tk

def button_click(value):
    mygui.xiugai(value)

root = tk.Tk()

# 创建按钮
button1 = tk.Button(root, text="panda", command=lambda: button_click("panda"), width=10)
button1.grid(row=0, column=0, padx=5, pady=5)

button2 = tk.Button(root, text="monkey", command=lambda: button_click("monkey"), width=10)
button2.grid(row=0, column=1, padx=5, pady=5)

button3 = tk.Button(root, text="pig", command=lambda: button_click("pig"), width=10)
button3.grid(row=0, column=2, padx=5, pady=5)

button4 = tk.Button(root, text="bone", command=lambda: button_click("bone"), width=10)
button4.grid(row=0, column=3, padx=5, pady=5)

button5 = tk.Button(root, text="kun", command=lambda: button_click("kun"), width=10)
button5.grid(row=0, column=4, padx=5, pady=5)

button6 = tk.Button(root, text="Alien", command=lambda: button_click("Alien"), width=10)
button6.grid(row=1, column=0, padx=5, pady=5)

button7 = tk.Button(root, text="dinosaur", command=lambda: button_click("dinosaur"), width=10)
button7.grid(row=1, column=1, padx=5, pady=5)

button8 = tk.Button(root, text="shit", command=lambda: button_click("shit"), width=10)
button8.grid(row=1, column=2, padx=5, pady=5)

button9 = tk.Button(root, text="spirit", command=lambda: button_click("spirit"), width=10)
button9.grid(row=1, column=3, padx=5, pady=5)

button10 = tk.Button(root, text="wild boar", command=lambda: button_click("wild boar"), width=10)
button10.grid(row=1, column=4, padx=5, pady=5)

result = None

root.geometry("500x100")

root.mainloop()

